package com.qdrtme.landemo.newcms;

import android.content.Context;

import com.qdrtme.landemo.BaseApi;

import org.json.JSONException;

import java.util.HashMap;

/**
 * @Created by taylor on 12/14/17.
 */

public class AddCommentTipoffApi extends BaseApi {

    private String commentId;
    private String userId;
    private String userNickname;
    private String content;


    public AddCommentTipoffApi(Context c) {
        super(c);
    }

    @Override
    protected String getURL() {
        return BaseApi.ADD_COMMENT_TIPOFF_LIST;
    }

    @Override
    protected void getParams(HashMap<String, Object> params) {
        super.getParams(params);
        params.put("commentId", commentId);
        params.put("userId", userId);
        params.put("userNickname", userNickname);
        params.put("content", content);
    }

    @Override
    protected boolean analysisOutput(String result) throws JSONException {
        return true;
    }

    public void setCommentId(String commentId) {
        this.commentId = commentId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public void setUserNickname(String userNickname) {
        this.userNickname = userNickname;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
